import Vue from 'vue'
import Vuex from 'vuex'
import theme from './theme'
import im from './im'
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		hasLogin: false,
		userInfo: "",// 用户信息
		chatList: [],// 消息列表
		addressBook: [], // 通讯录
		friendRequest: [],// 好友请求
	},
	mutations: {
		login(state, provider) {
			state.userInfo = provider;
		}
	},
	actions: {

	},
	modules: {
		theme,
		im
	}
})

export default store
